//
//  ViewController.m
//  Community
//
//  Created by YaSha_Tom on 2018/12/20.
//  Copyright © 2018年 YaSha-Tom. All rights reserved.
//

#import "ViewController.h"
#import "FoundViewController.h"
#import "SendTravelViewController.h"
#import "TravelViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"测试";
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(50, 100, 275, 30);
    button.backgroundColor = [UIColor redColor];
    [button addTarget:self action:@selector(buttonEvent) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
}
- (void)buttonEvent {
    //动态
    TravelViewController *travelViewController = [[TravelViewController alloc]init];
    [self.navigationController pushViewController:travelViewController animated:YES];
    //发游记
//    SendTravelViewController *sendTravelViewController = [[SendTravelViewController alloc]init];
//    [self.navigationController pushViewController:sendTravelViewController animated:YES];
    // 旅游地
//    FoundViewController *foundViewController = [[FoundViewController alloc]init];
//    [self.navigationController pushViewController:foundViewController animated:YES];
}


@end
